Page({
  data: {
    autoplay: true,
    swiperCurrent: 0,
    swiperMaxNumber: 4,
  },
  getLogin() {
    // wx.switchTab():跳转到 tabBar 页面，并关闭其他所有非 tabBar 页面，
    //这里的tabBar是底下的导航栏指定的页面，
    wx.switchTab({
      url: "/pages/index/index"
    })
  },
  fike: function (e) {
    // console.log(e.detail);
    console.log(this.data.autoplay);
    this.setData({
      swiperCurrent: e.detail.current,
    });
    if (this.data.swiperCurrent == 3) {
      this.setData({
        autoplay: false
      })
      console.log(this.data.autoplay);
    }
  },

})
